<template>
  <div>
    <ul>
      <li v-for="stu in students" :key="stu.id">
        姓名：{{stu.name | mySlice}}，年龄：{{stu.age}} 
        <input type="text" :value="stu.name">
      </li>
    </ul>
  </div>
</template>

<script>

export default {
  name:"Student",
  data() {
    return {
      students:[
        {id:'01',name:'lisi',age:18},
        {id:'02',name:'wangwu',age:28},
        {id:'03',name:'tom',age:23},
        {id:'04',name:'jerry',age:22}
      ]
    }
  },
}
</script>